package cn.bytets.speed.consumer;

import cn.bytest.netty.code.SpeedCodec;
import cn.bytets.rpc.api.message.RpcInvocation;
import cn.bytets.speed.bean.DemoServer;
import com.google.gson.Gson;

/**
 * 生成者
 */
public class RpcConsumer {

    public static void main(String[] args) {
        ReferenceConfig<DemoServer> config = new ReferenceConfig<DemoServer>();
        config.setInterface(DemoServer.class);
        config.initConfig();
        DemoServer server = config.get();
        System.out.println("调用===>");
        String hello_ = server.sayHi("Hello ");
        System.out.println("返回结果" + hello_);
    }
}
